From 0851cb2468e76c5274d6cb8a98139a50a9091fcd Mon Sep 17 00:00:00 2001 From: dp-arm Date: Tue, 2 May 2017 12:35:24 +0100 Subject: [PATCH] fvp: Remove unnecessary default case The default case is impossible to hit as the `power_level` is already checked earlier. Avoids a clang warning. Change-Id: I707463c843adc748ee9aa1d2313f9ab7dab3a8ab Signed-off-by: dp-arm --- plat/arm/board/fvp/fvp_pm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/plat/arm/board/fvp/fvp_pm.c b/plat/arm/board/fvp/fvp_pm.c index 449c580f..f4df658a 100644 --- a/plat/arm/board/fvp/fvp_pm.c +++ b/plat/arm/board/fvp/fvp_pm.c @@ -296,8 +296,6 @@ static int fvp_node_hw_state(u_register_t target_cpu, case ARM_PWR_LVL1: ret = (psysr & PSYSR_AFF_L1) ? HW_ON : HW_OFF; break; - default: - assert(0); } return ret; -- 2.30.2